package com.kaili.basic.service.impl;

import com.kaili.basic.pojo.entity.BaseCityVO;
import com.kaili.basic.mapper.BaseCityMapper;
import com.kaili.basic.service.BaseCityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zhangjl
 * @Type BaseCityServiceImpl
 * @Desc 杭州凯立通信有限公司
 * @Date 2018年05月18日
 */
@Service
public class BaseCityServiceImpl implements BaseCityService {

    @Autowired
    BaseCityMapper baseCityMapper;

    @Override
    public BaseCityVO getCityId(Long cityId) {
        return null;
    }

    @Override
    public List<BaseCityVO> getAreaByName(BaseCityVO baseCityVO) {
        return baseCityMapper.getAreaByName(baseCityVO);
    }

    @Override
    public List<BaseCityVO> getCityName(BaseCityVO baseCityVO) {
        return baseCityMapper.getCityName(baseCityVO);
    }

    @Override
    public List<BaseCityVO> getProvinceName(BaseCityVO baseCityVO) {
        return baseCityMapper.getProvinceName(baseCityVO);
    }

    @Override
    public List<Map> getCounty() {
        return baseCityMapper.getCounty();
    }

    @Override
    public List<Map> getCity() {
        return baseCityMapper.getCity();
    }

    @Override
    public List<Map> getProvince() {
        return baseCityMapper.getProvince();
    }

    @Override
    public List<Map> getArea() {
        return baseCityMapper.getArea();
    }

    @Override
    public BaseCityVO selectCityByName(String name) {
        return baseCityMapper.selectCityByName(name);
    }
}
